/**
 * Created by limeng on 16/8/31.
 */
var indexApp = angular.module('indexApp', ['ngRoute']);

indexApp.config(function ($routeProvider) {
    $routeProvider.when("/", {
        templateUrl : "/template/index_mainContent.jsp",
        controller : "MainContentCtrl"
    }).when("/noticeList", {
        templateUrl : "/proposal/listPage",
        controller : "NoticeListCtrl"
    }).when("/knowledgeList", {
        templateUrl : "/proposal/listPage",
        controller : "KnowledgeListCtrl"
    }).when("/history", {
        templateUrl : "/template/proposal/history.jsp",
        controller : "HistoryListCtrl"
    }).when("/history/:configId", {
        templateUrl : "/proposal/listPage",
        controller : "HistoryProposalListCtrl"
    }).when("/hotestProposalList", {
        templateUrl : "/proposal/listPage",
        controller : "HotestProposalListCtrl"
    }).when("/newProposalList", {
        templateUrl : "/proposal/listPage",
        controller : "NewProposalListCtrl"
    }).when("/viewProposal/:proposalId", {
        templateUrl : "/proposal/detailPage",
        controller : "ProposalDetailCtrl"
    }).when("/viewArticle/:articleId", {
        templateUrl : "/template/article/detailPage.jsp",
        controller : "ArticleDetailCtrl"
    });
});